with open(r'C:\Users\Administrator\Desktop\six_star\open_2\my_life.txt','w') as book:
    notkook = book.write('hello\nlife\nworld!')
    print(notkook)